//
//  FirstViewController.m
//  11-Xib
//
//  Created by 402030900@qq.com on 16/7/28.
//  Copyright © 2016年 402030900@qq.com. All rights reserved.
//

#import "FirstViewController.h"
// 签订代理,指定代理人,实现协议方法
// 指定代理人,在xib中可以通过控件向File's Owner去指定,
// 相当于 self.userNameTextField.delegate = self;
// 只需要签订代理,实现代理方法

@interface FirstViewController ()<UITextFieldDelegate>
// 1.IBOutlet 修饰的属性 是xib/storyBoard 中的控件
// 2.实心圆圈 已关联对象 空心圆圈 未关联对象
// 3.xib/sb 中的控件与VC/自定义cell关联后,如果属性被删除,对应的控件关联也应删除(右键查看控件关联reference IBOutLets)
// 4.如果控件非常多,出现问题,无从下手
// 查看崩溃信息中 关键key:例:userNameTextField
// 在搜索栏,搜索关键key
@property (weak, nonatomic) IBOutlet UITextField *userNameTextField;
@property (weak, nonatomic) IBOutlet UITextField *passWordTextField;

@end

@implementation FirstViewController
// 如果不更改Button的一些属性,直接拖成方法即可
- (IBAction)loginButton:(id)sender {
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
